// assignment 1
// Product.java
// 
import java.io.*;

public class Product
{
	private String description;
	private int quantity;
	
	// setter methods
	void setDescription(String desc)
	{
		description = desc;
	}
	
	void setQuantity(int qty)
	{
		quantity = qty;
	}
	
	// getter methods
	String getDescription()
	{
		return description;
	}
	
	int getQuantity()
	{
		return quantity;
	}
	
	
 	void MainMenu()
	{
		System.out.println("\n****** Welcome ******\n");
		System.out.println("Choose a product: ");
	}
	
	
	
	public String getUserInput(String prompt)
 	{
     	String inputLine = null;
	    System.out.print(prompt + "  ");
	    
		try {
	       BufferedReader is = new BufferedReader(
		new InputStreamReader(System.in));
	       inputLine = is.readLine();
	       if (inputLine.length() == 0 )  return null; 
	     } catch (IOException e) {
	       System.out.println("IOException: " + e);
	     }
	     return inputLine.toLowerCase();
  	}
	
/*	
	public String GetUserInput()
	{
	      //  prompt the user to enter their name
	      System.out.print("Enter your name: ");

	      //  open up standard input
	      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	      String userName = null;

	      //  read the username from the command-line; need to use try/catch with the
	      //  readLine() method
	      try {
	         userName = br.readLine();
	      } catch (IOException ioe) {
	         System.out.println("IO error trying to read your name!");
	         System.exit(1);
	      }

	      System.out.println("Thanks for the name, " + userName);

	}  // end of ReadString class
*/	
	
}

